`define load_ALUresult 3'b000
`define load_mem 3'b001
`define load_byte 3'b010
module Load(
        input [31:0] mem,
        input [31:0] ALU_result,
        input [2:0] load_select,
        output [31:0] load_result
    );
    assign load_result=(load_select==`load_ALUresult)?ALU_result:
           (load_select==`load_mem)?mem:
           (load_select==`load_byte)?{{24{1'b0}},mem[7:0]}:
           32'd0;
endmodule
